package com.ruoyi.houses.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.houses.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 小薛超人
 * @version 1.0
 * @description: TODO
 * @date 2025/9/19 19:47
 */
@RestController
@RequestMapping("/houses/area")
public class AreaController {

    @Autowired
    AreaService areaService;

    /**
     * 区域列表
     * @return
     */
    @PostMapping("/areaList")
    public AjaxResult areaList(){
       return areaService.areaList();

    }
}
